package com.zzyl.nursing.service;

import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.dto.ReservationDto;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface IMemberReservationService {
    /**
     * 根据用户ID查询取消预约数量
     * @param userId
     * @return
     */
    Integer selectReservationCountByDay(Long userId);

    /**
     * 根据时间查询预约数量
     * @param time
     * @return
     */
    List<Map<String,Object>> selectReservationCountByTime(Long time);

    /**
     * 新增预约
     */
    int insertReservation(ReservationDto dto);
}
